<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>

<title>测试头部文件</title>
<link type="text/css" href="<%=basePath%>css/index_main.css"
	rel="stylesheet" />

</head>
<jsp:include flush="true" page="header.jsp"></jsp:include>
<%--  <jsp:include flush="true" page="header.jsp"></jsp:include> 
  <%@include file="header.jsp" %>--%>
<body>
<div class="main">fhdsfjhsdkfskdljflksdjflsldjf<br>
<a href="<%=basePath%>page/index/header.jsp">头部</a></div>

<jsp:include flush="true" page="footer.jsp"></jsp:include>
</body>

</html>
